﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ImportStock.aspx.cs" Inherits="DevExpressWebApplication1.Module.MM.ImportStock" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <dx:ASPxButton runat="server">
        <ClientSideEvents Click="function(s,e){ Show() }" />
    </dx:ASPxButton>

    <dx:ASPxPopupControl ID="popupAddEdit" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
        CssPostfix="Aqua" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" ClientInstanceName="popupAddEdit"
        HeaderText="Quản lý khách hàng" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Theme="DevEx"
        EnableClientSideAPI="True" Width="900px" Height="300px">
        <%-- PopupElementID="divPotential" --%>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                <div style="width: 100%; float: left">
                    <h5 style="text-align: left; margin: 0px 0 !important; background-color: #389dc3; line-height: 19px; width: 100%; float: left">
                        <span style="margin-left:20px">Infomation</span> 
                    </h5>
                    <table class="TblMaster" >
                        <tr>
                            <td class="Tdlbl" style="width:20%">Khách hàng</td>
                            <td class="TdValue" style="width:30%">
                                <dx:ASPxDropDownEdit runat="server" Width="100%" /> 
                            </td>
                            <td class="Tdlbl" style="width:20%">Ghi chú</td>
                            <td class="TdValue" style="width:30%">
                                <dx:ASPxTextBox runat="server" Width="100%" />
                            </td>
                        </tr>
                    </table>
                </div>

               <%-- <div style="width: 100%; float: left ; margin-top:20px;">
                    <h5 style="text-align: left; margin: 0px 0 !important; background-color: #389dc3; line-height: 19px; width: 100%; float: left">
                        <span style="margin-left:20px">Details</span> 
                    </h5>
                    <dx:ASPxCallbackPanel ID="cbAddEdit" ClientInstanceName="cbAddEdit" runat="server" Width="100%">
                        <PanelCollection>
                            <dx:PanelContent>
                                <dx:ASPxHiddenField ID="hdfCustomerID" ClientInstanceName="hdfCustomerID" runat="server" />
                                <table width="100%">
                                    <tr>
                                        <td style="width: 20%">Tên khách hàng
                                        </td>
                                        <td style="width: 30%">
                                            <dx:ASPxTextBox ID="txtCustomer" ClientInstanceName="txtCustomer" runat="server" Theme="DevEx"></dx:ASPxTextBox>
                                        </td>
                                        <td style="width: 20%">Nhóm khách hàng
                                        </td>
                                        <td style="width: 30%">
                                            <dx:ASPxComboBox ID="cmbGroup" DataSourceID="dsCmbGetByType" ValueField="group_id" ValueType="System.Int32"
                                                IncrementalFilteringMode="Contains" ClientInstanceName="cmbGroup" runat="server" Theme="DevEx">
                                                <Columns>
                                                    <dx:ListBoxColumn FieldName="group_name" />
                                                    <dx:ListBoxColumn FieldName="description" />
                                                </Columns>
                                            </dx:ASPxComboBox>
                                            <asp:SqlDataSource ID="dsCmbGetByType" runat="server" ConnectionString="<%$ ConnectionStrings:PPL_ERPConnectionString %>"
                                                SelectCommand="sp_Group_GetByType" SelectCommandType="StoredProcedure">
                                                <SelectParameters>
                                                    <asp:Parameter DefaultValue="1" Name="Type" Type="Int32" />
                                                </SelectParameters>
                                            </asp:SqlDataSource>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 20%">Tên công ty
                                        </td>
                                        <td style="width: 30%">
                                            <dx:ASPxTextBox ID="txtCompany" ClientInstanceName="txtCompany" runat="server" Theme="DevEx"></dx:ASPxTextBox>
                                        </td>
                                        <td>Điện thoại
                                        </td>
                                        <td>
                                            <dx:ASPxSpinEdit ID="txtPhone" ClientInstanceName="txtPhone" runat="server" Height="21px" Theme="DevEx" Number="0">
                                                <SpinButtons ShowIncrementButtons="false" />
                                            </dx:ASPxSpinEdit>
                                        </td>

                                    </tr>
                                    <tr>
                                        <td>Ngày sinh
                                        </td>
                                        <td>
                                            <dx:ASPxDateEdit ID="dtpDOB" ClientInstanceName="dtpDOB" runat="server" Theme="DevEx" EditFormat="Custom" EditFormatString="MM/dd/yyyy"></dx:ASPxDateEdit>
                                        </td>
                                        <td>Địa chỉ
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtAddress" ClientInstanceName="txtAddress" runat="server" Theme="DevEx"></dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Cập nhật" UseSubmitBehavior="False" AutoPostBack="False">
                                                <ClientSideEvents Click="function(s,e){ cpReloadGrid.PerformCallback('Add'); }" />
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxCallbackPanel>
                </div>--%>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
<%--    <dx:ASPxCallback ID="cpReloadGrid" ClientInstanceName="cpReloadGrid" runat="server"
        OnCallback="cpReloadGrid_Callback">
        <ClientSideEvents CallbackComplete="function(s,e){SaveComplete(s,e);}" />
    </dx:ASPxCallback>--%>
    <script type="text/javascript">
        function Show() { popupAddEdit.Show(); };
    </script>
</asp:Content>
